from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import psycopg2
import os

# 数据库连接 URL，需根据实际情况修改
DATABASE_URL = "postgresql://postgres:Ab123456@172.16.5.20:5432/information"

# 创建数据库引擎
engine = create_engine(DATABASE_URL)

# 创建会话工厂
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)



conn = psycopg2.connect(
    dbname='information', user='postgres', password="Ab123456", host='172.16.5.20', port="5432"
)
